/*
 * @Author: liu.ff 
 * @Date: 2018-09-11 15:18:07 
 * @Last Modified by: liu.ff
 * @Last Modified time: 2018-09-12 14:35:06
 */

import React, {Component} from 'react';
import {
	Platform,
	StyleSheet,
	View,
	Text,
	Image,
	ScrollView,
	AlertIOS,
} from 'react-native';
import {LFImages} from "../../src/img";


import MoreCell from './LFMoreCell';
import {ScreenFixW} from "../../Common/Tools/Scale2Size";

export default class More extends Component {


	static navigationOptions = {
		headerTitle: '更多',
		headerRight: <Image source={LFImages.icon_mine_setting} style={{height: 25, width: 25, margin: 10}}></Image>,

	}


	render() {
		return (
			<ScrollView showsVerticalScrollIndicator={false}>
				{/*// 模块一*/}
				<MoreCell title='扫一扫'
				          marginTohnum={10}
				          isBottomLine={false}
				          clickBlock={this.clickBlock.bind(this, '扫一扫')}/>

				{/*// 模块二*/}
				<MoreCell title='省流量模式'
				          marginTohnum={10}
				          isBottomLine={true}
				          isSwitch={true}
				          clickBlock={this.clickBlock.bind(this, '省流量模式')}/>
				<MoreCell title='消息提醒'
				          marginTohnum={0}
				          isBottomLine={true}
				          clickBlock={this.clickBlock.bind(this, '消息提醒')}/>
				<MoreCell title='邀请好友使用'
				          marginTohnum={0}
				          isBottomLine={true}
				          clickBlock={this.clickBlock.bind(this, '邀请好友使用')}/>
				<MoreCell title='清空缓存'
				          marginTohnum={0}
				          rightTitle='1.99M'
				          clickBlock={this.clickBlock.bind(this, '清空缓存')}/>

				{/*// 模块三*/}
				<MoreCell title='问卷调查'
				          marginTohnum={10}
				          isBottomLine={true}
				          clickBlock={this.clickBlock.bind(this, '问卷调查')}/>
				<MoreCell title='支付帮助'
				          marginTohnum={0}
				          isBottomLine={true}
				          clickBlock={this.clickBlock.bind(this, '支付帮助')}/>
				<MoreCell title='网络诊断'
				          marginTohnum={0}
				          isBottomLine={true}
				          clickBlock={this.clickBlock.bind(this, '网络诊断')}/>
				<MoreCell title='关于我们'
				          marginTohnum={0}
				          isBottomLine={true}
				          clickBlock={this.clickBlock.bind(this, '关于我们')}/>
				<MoreCell title='我要应聘'
				          marginTohnum={0}
				          clickBlock={this.clickBlock.bind(this, '我要应聘')}/>

				{/*// 模块四*/}
				<MoreCell title='精品应用'
				          marginTohnum={10}
				          isBottomLine={false}
				          clickBlock={this.clickBlock.bind(this, '精品应用')}/>
			</ScrollView>
		)
	}

	clickBlock(title) {
		AlertIOS.alert(title)
	}


}


const styles = StyleSheet.create({
	baseView: {
		marginTop: 10,
		flexDirection: 'row',
	}

})

